<?php

class Xzsdsplus_Costpriceplus_Model_Action extends Mage_Core_Model_Abstract {

	protected function _construct() {
		$this->_init('costpriceplus/action');
	}

	protected function _getResource() {
		return parent::_getResource();
	}


	public function updateAttributes($bannerIds, $attrData, $storeId) {
		
		$this->_getResource()->updateAttributes($bannerIds, $attrData, $storeId);
		$this->setData(array(
			'banner_ids'       => array_unique($bannerIds),
			'attributes_data'   => $attrData,
			'store_id'          => $storeId
		));

		return $this;
	}

}
